﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Index.cshtml";
}
@section Content{
    <style>
        .topPanel {
            height: 95px;
        }

            .topPanel .search {
                padding-top: 10px;
            }
    </style>
}


<form id="form1">
    <div style="padding-top: 20px; padding-left: 30px;">
        <table class="form">
            <tr>
              @*  <td class="formValue" colspan="7"></td>*@
            </tr>
            <tr>
                <th class="formTitle">消息类型：</th>
                <td class="formValue" colspan="1" id="F_MessageType">
                
                
            </tr>
            @*<tr>
                <th class="formTitle">部门</th>
                <td class="formValue" colspan="3">
                    <input id="F_Organize" name="F_Organize" type="text" class="form-control required" disabled="disabled" />
                </td>
                <th class="formTitle">岗位</th>
                <td class="formValue" colspan="2">
                    <input id="F_Duty" name="F_Duty" type="text" class="form-control required" disabled="disabled" />

                </td>
            </tr>*@
            <tr>
                <th class="formTitle">创建时间：</th>
                <td class="formValue" id="F_CreatorTime" class="formValue" colspan="2">
                @*<td id="F_CreatorTime" class="formValue" colspan="2">
                   <span id="F_CreatorTime"></span>
                    <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control required" disabled="disabled" />
                </td>*@
                <th class="formTitle">创建人：</th>
                <td id="F_CreatorUser" class="formValue" colspan="1">
                    @*<span id="F_CreatorUser"></span>*@
                    @*<input id="F_CreatorUser" name="F_CreatorUser" type="text" class="form-control required" disabled="disabled" />*@

                </td>
            </tr>
            <tr>
                <th class="formTitle">内容：</th>
                <td id="F_MessageContent" class="formValue" colspan="5">
                    @*<span id="F_MessageContent"></span>*@
                    @* <textarea id="F_MessageContent" name="F_MessageContent" type="text" class="form-control required" rows="2" disabled="disabled"></textarea>*@
                </td>
            </tr>

        </table>
    </div>
</form>

<script>
    var messageId = $.request("keyValue");

    $(function () {
        $.get('/ClientsData/GetMessageNotice?keyValue=' + messageId,
            {},
            function (result) {
                var data = $.parseJSON(result);
                $('#F_MessageType').html(data.F_MessageType);
                $('#F_CreatorUser').html(data.F_CreatorUser);
                $('#F_CreatorTime').html(data.F_CreatorTime);
                $('#F_MessageContent').html(data.F_MessageContent);
                $('#F_Organize').html(data.F_Organize);
                $('#F_Duty').html(data.F_Duty);

            });

    });

    //提交表单
    //function submitForm() {
    //    $.submitForm({
    //        url: "/ClientsData/SetMessageForReaded?keyValue=" + messageId,
    //        success: function (result) {
    //            var $elemnets = $($.currentWindow()).parents();
                
    //            if ($elemnets == null || $elemnets.length == 0) {
    //                top.$('#refreshUnreadMessageCount').trigger('click');
    //            } else {
    //                $elemnets.find('#theme-wrapper').find('#refreshUnreadMessageCount').trigger('click');
    //            }
    //        }
    //    });
        
    //    return true;
    //}
</script>
